<?php
/**
 * Created by PhpStorm.
 * User: ytlmi
 * Date: 2018/4/23
 * Time: 12:42
 */

namespace app\common\model;


use think\Model;

class BaseModel extends Model
{
    protected function unserialize($value)
    {
        try{
            $arr=unserialize($value);
            return $arr;
        }catch (\Exception $e){
            return $value;
        }
    }
}